Fix a leftover window
authorMatthias Clasen <mclasen@redhat.com>
Fri, 8 May 2020 16:27:25 +0000 (12:27 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 11 May 2020 19:42:52 +0000 (15:42 -0400)
We were still using container api on a window here.

tests/visuals/visuals.c

index 2aa83d7930d0cc590b34db0ef410246f5e9d3c60..b3232fa7b89ea315a21266d7ea6f1094ae9e2659 100644 (file)
@@ -44,7 +44,7 @@ create_dark_popup (GtkWidget *parent)
   gtk_window_set_resizable (GTK_WINDOW (popup), FALSE);
   gtk_window_set_hide_on_close (GTK_WINDOW (popup), TRUE);
 
-  gtk_container_add (GTK_CONTAINER (popup), button);
+  gtk_window_set_child (GTK_WINDOW (popup), button);
   g_signal_connect (button, "toggled",
                     G_CALLBACK (dark_button_toggled_cb), NULL);